package net.lengwang.iot.middleware.packet;

public abstract class Packet {
    protected byte[] startFlag;
    protected byte length;
    protected byte command;
    protected byte version;
    protected short sequenceNumber;
    protected byte[] crc;
    protected byte[] endFlag;

    public abstract byte[] toBytes();
    public abstract void fromBytes(byte[] data);
}
